package com.baiyu.total;

import android.widget.TextView;

public class Operation {
    public static void meishiyisub(TextView t) {
        int num= Integer.parseInt(t.getText().toString());
        if (num==0) {
            num=1;
        }
        t.setText(String.valueOf(--num));
    }

    public static void meishiesub(TextView meishietextView) {
        int num= Integer.parseInt(meishietextView.getText().toString());
        if (num==0) {
            num=1;
        }
        meishietextView.setText(String.valueOf(--num));
    }

    public static void meishisansub(TextView meishisantextView) {
        int num= Integer.parseInt(meishisantextView.getText().toString());
        if (num==0) {
            num=1;
        }
        meishisantextView.setText(String.valueOf(--num));
    }

    public static void meishisisub(TextView meishisitextView) {
        int num= Integer.parseInt(meishisitextView.getText().toString());
        if (num==0) {
            num=1;
        }
        meishisitextView.setText(String.valueOf(--num));
    }

    
    
    
    
    
    
    
    public static void meishiyiadd(TextView meishiyitextView) {
        int num= Integer.parseInt(meishiyitextView.getText().toString());

        meishiyitextView.setText(String.valueOf(++num));
    }

    public static void meishieadd(TextView meishietextView) {
        int num= Integer.parseInt(meishietextView.getText().toString());

        meishietextView.setText(String.valueOf(++num));
    }

    public static void meishisanadd(TextView meishisantextView) {
        int num= Integer.parseInt(meishisantextView.getText().toString());

        meishisantextView.setText(String.valueOf(++num));
    }

    public static void meishisiadd(TextView meishisitextView) {
        int num= Integer.parseInt(meishisitextView.getText().toString());

        meishisitextView.setText(String.valueOf(++num));
    }
}
